package zuoye;

public class Test_one {


	public static void main(String[] args) {
		  byte a=1;                     //定义byte型变量a并赋给初值
		  short b=2;                    //定义short型变量b并赋给初值
		  int c=3;                      //定义int型变量c并赋给初值
		  long d=10000000000l;          //定义long型变量d并赋给初值
		  float e=19.89f;               //定义float型变量e并赋给初值
		  double f=1.31564;             //定义double型变量f并赋给初值
		  char g='a';                   //定义char型变量g并赋给初值
		  boolean h=true;               //定义boolean型变量h并赋给初值
		  System.out.println(a);        //输出变量a
		  System.out.println(b);        //输出变量b
		  System.out.println(c);        //输出变量c
		  System.out.println(d);        //输出变量d
		  System.out.println(e);        //输出变量e
		  System.out.println(f);        //输出变量f
		  System.out.println(g);        //输出变量g
		  System.out.println(h);        //输出变量h
		  long a1=(long)a;              //将byte型变量a强制转化long型
		  long b1=(long)b;              //将short型变量b强制转化long型
		  long c1=(long)c;              //将int型变量c强制转化long型
		  long e1=(long)e;              //将float型变量e强制转化long型
		  long f1=(long)f;              //将double型变量f强制转化long型
		  long g1=(long)g;              //将char型变量g强制转化long型
		  System.out.println(a1);       //输出变量a1
		  System.out.println(b1);       //输出变量b1
		  System.out.println(c1);       //输出变量c1
	      System.out.println(e1);       //输出变量e1
	      System.out.println(f1);       //输出变量f1
	      System.out.println(g1);       //输出变量g1
	     }


}
